//
//  ShellLuanchTool.h
//  AppShellTool
//
//  Created by IOS01 on 2022/12/2.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN


typedef UIViewController *_Nullable(^AppGiveControllerBlock)(UIViewController *vc,NSString *urlParam);

@interface ShellLuanchTool : NSObject

+(ShellLuanchTool *)shareTool;

@property(nonatomic, assign) BOOL isShellPush;

@property(nonatomic, strong) NSString *url;


/// 检查是否是外壳启动的
- (void)checkIsShellLuanch;

/// 是否可以退出app去外壳
- (BOOL)isCanOutApllication;

/// 退回调用页面
- (void)shellIsBack;


/// 一些iOS13 的系统用了UIScene则用这个
/// @param set set description
- (void)sceneHadUrlContext:(NSSet *)set;

/// 进入后台
- (void)enterBackground;

@property(nonatomic, copy) AppGiveControllerBlock giveControllerBlock;

/// 实现该方法判断app是否登录，如果未登录返回NO则不再弹出功能页面
@property(nonatomic, copy) BOOL (^AppHadLoginBlock)(void);


/// 登录后再次检查弹过来的内容
@property(nonatomic, copy) void (^AfterLoginBlock)(void);

@end

NS_ASSUME_NONNULL_END
